package ch.bfh.abcm.rems.konfiguration;

import java.util.HashMap;

public class UpdateUserConfigMessage {

    protected HashMap<String, String> propertyMap;

    public UpdateUserConfigMessage(String propertyKey, String propertyValue) {
        this(createHashMap(propertyKey, propertyValue));
    }

    public UpdateUserConfigMessage(HashMap<String, String> propertyMap) {
        this.propertyMap = propertyMap;
    }

    private static HashMap<String, String> createHashMap(String propertyKey, String propertyValue) {
        HashMap<String, String> map = new HashMap<String, String>();
        map.put(propertyKey, propertyValue);
        return map;
    }

    public HashMap<String, String> getPropertyMap() {
        return propertyMap;
    }
    
}
